import request from '@/utils/request';
//添加和更改
export const reJournaladd = (data:any) =>request.put<any,any>("/journal/add",data)

//当前用户日记所有数据
export const reJournalquery = () =>request.get<any>(`/journal/query`)

//当前选中的日记数据
export const reJournalqueryid = (id:any) =>request.get<any>(`/journal/?id=${id}`)

//删除日记
export const reJournaldelete = (id:any) =>request.delete<any>(`/journal/delete?id=${id}`)

//查询
export const  reSearchJournal = (title:any) =>request.get<any>(`/journal/search?title=${title}`)

//今日任务的完成进度
export const reTaskStatus = (day:any) =>request.get<any,any>(`/tasks/todayStatus?day=${day}`)